package org.znxs.aiCodeGenerate.services.impl;

import com.google.gson.Gson;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.znxs.aiCodeGenerate.mapper.PostMapper;
import org.znxs.aiCodeGenerate.model.dto.post.PostQueryRequest;
import org.znxs.aiCodeGenerate.model.entity.Post;
import org.znxs.aiCodeGenerate.model.vo.PostVO;
import org.znxs.aiCodeGenerate.services.PostService;
import org.znxs.aiCodeGenerate.services.UserService;

/**
 * 帖子服务实现
 */
@Service
@Slf4j
public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements PostService {

    private final static Gson GSON = new Gson();

    @Resource
    private UserService userService;


    @Override
    public void validPost(Post post, boolean add) {

    }

    @Override
    public QueryWrapper getQueryWrapper(PostQueryRequest postQueryRequest) {
        return null;
    }

    @Override
    public PostVO getPostVO(Post post, HttpServletRequest request) {
        return null;
    }

    @Override
    public Page<PostVO> getPostVOPage(Page<Post> postPage, HttpServletRequest request) {
        return null;
    }
}




